package com.john.blog.controller.front;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.john.blog.common.vo.CommonResult;
import com.john.blog.model.po.Youlian;
import com.john.blog.service.YoulianService;

/**
 * 
 * 友情链接
 * 
 * @author JiangGengchao
 * @date 2018年2月4日
 */
@RestController
@RequestMapping("/blog/youlian")
public class FrontYoulianController {

    @Autowired
    private YoulianService youlianService;

    @RequestMapping("/findAll")
    public CommonResult findAll() {
        List<Youlian> data = youlianService.findAll();
        return CommonResult.build(CommonResult.Code.SUCCESS, null, data);
    }

}
